from redis import ConnectionPool, StrictRedis


class RedisClient5(object):
    pool = ConnectionPool(**{
        'host': '39.105.230.139',
        'port': 6379,
        'db': 5,
        'password': 950218
    })
    client = StrictRedis(connection_pool=pool)

    def get_cookies(self):
        return str(self.client.get('cookies'), encoding='utf-8')